import time,machine,network,ws2812,ntptime

ws2812.init_time()

def do_connect():
    wlan = network.WLAN(network.STA_IF)
    wlan.active(True)
    if not wlan.isconnected():
        print('没有连上网络')
        wlan.connect('WHTFKJ','15926234568159262345689558')

def main():
    print(232)
    do_connect()
    print(11)
    rtc = RTC
    ntptime.settime()
    etime=rtc.datatime()
    print(etime)

main()
        
